#include <stdio.h>
#include <math.h>
int main(){
    float last=0,a=0,current=1;
    printf("enter a positive number:");
    scanf("%f",&a);
    current=a/2;
    while(fabs(last-current)>=1e-5){
        last = current;
        current =(current + a/current)/2;
    }
    printf("The square root of  %.2f is  %.5f\n",a,current);
    return 0;
}